<template>
  <div class="content">
    <div class="BackHome">
      <div class="top" :class="fairActive===1?'active':''" @click="goBack">
        <img src="@/assets/spotlight/home.png" alt="">
        <div class="title">返回首页</div>
      </div>
<!--      <div class="top" :class="fairActive===2?'active':''" @click="fairActive=2">-->
<!--        <img src="@/assets/spotlight/vx.png" alt="">-->
<!--        <div class="title">政务微信</div>-->
<!--      </div>-->
<!--      <div class="top" :class="fairActive===3?'active':''" @click="fairActive=3">-->
<!--        <img src="@/assets/spotlight/wb.png" alt="">-->
<!--        <div class="title">政务微博</div>-->
<!--      </div>-->
    </div>
  </div>
</template>

<script>
export default {
  name: 'BackHome',
  props: {
    msg: String
  },
  data(){
    return{
      fairActive: 1
    }
  },
  methods:{
    goBack(){
      this.fairActive = 1
      this.$router.push({ name: 'home', })
    }
}
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
.content{
  .BackHome{
    //width: 100px;
    //height: 200px;
    cursor: pointer;
    .top{
      width: 70px;
      height: 100px;
      background-color: #F7F7F7;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      border: 1px solid #c2bdbd;
      img{
        width: 30px;
        height: 30px;
      }
      .title{
        margin-left: 8px;
        width: 40px;
      }
    }
    .top.active{
      color: #F7F7F7;
      background: linear-gradient(to bottom right, #FD5A92, #FE5F42);
    }
    .middle{
      width: 70px;
      height: 100px;
      background-color: #F7F7F7;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      border: 1px solid #c2bdbd;
      border-top: none;
      img{
        width: 30px;
        height: 30px;
      }
      .title{
        margin-left: 8px;
        width: 40px;
      }
    }
    .bottom{
      width: 70px;
      height: 100px;
      background-color: #F7F7F7;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      border: 1px solid #c2bdbd;
      border-top: none;

      img{
        width: 30px;
        height: 30px;
      }
      .title{
        margin-left: 8px;
        width: 40px;
      }
    }
  }
}
</style>
